Optimal. Leaf size=59 \[ \frac{e^a x^m (-b x)^{-m} \text{Gamma}(m+3,-b x)}{2 b^3}-\frac{e^{-a} x^m (b x)^{-m} \text{Gamma}(m+3,b x)}{2 b^3} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0721975, antiderivative size = 59, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.167, Rules used = {3307, 2181} \[ \frac{e^a x^m (-b x)^{-m} \text{Gamma}(m+3,-b x)}{2 b^3}-\frac{e^{-a} x^m (b x)^{-m} \text{Gamma}(m+3,b x)}{2 b^3} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3307
Rule 2181
Rubi steps
\begin{align*} \int x^{2+m} \cosh (a+b x) \, dx &=\frac{1}{2} \int e^{-i (i a+i b x)} x^{2+m} \, dx+\frac{1}{2} \int e^{i (i a+i b x)} x^{2+m} \, dx\\ &=\frac{e^a x^m (-b x)^{-m} \Gamma (3+m,-b x)}{2 b^3}-\frac{e^{-a} x^m (b x)^{-m} \Gamma (3+m,b x)}{2 b^3}\\ \end{align*}
Mathematica [A] time = 0.0194083, size = 54, normalized size = 0.92 \[ \frac{e^{-a} x^m \left (e^{2 a} (-b x)^{-m} \text{Gamma}(m+3,-b x)-(b x)^{-m} \text{Gamma}(m+3,b x)\right )}{2 b^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.055, size = 73, normalized size = 1.2 \begin{align*}{\frac{{x}^{3+m}\cosh \left ( a \right ) }{3+m}{\mbox{$_1$F$_2$}({\frac{3}{2}}+{\frac{m}{2}};\,{\frac{1}{2}},{\frac{5}{2}}+{\frac{m}{2}};\,{\frac{{x}^{2}{b}^{2}}{4}})}}+{\frac{b{x}^{4+m}\sinh \left ( a \right ) }{4+m}{\mbox{$_1$F$_2$}(2+{\frac{m}{2}};\,{\frac{3}{2}},3+{\frac{m}{2}};\,{\frac{{x}^{2}{b}^{2}}{4}})}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.14434, size = 74, normalized size = 1.25 \begin{align*} -\frac{1}{2} \, \left (b x\right )^{-m - 3} x^{m + 3} e^{\left (-a\right )} \Gamma \left (m + 3, b x\right ) - \frac{1}{2} \, \left (-b x\right )^{-m - 3} x^{m + 3} e^{a} \Gamma \left (m + 3, -b x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.89764, size = 259, normalized size = 4.39 \begin{align*} -\frac{\cosh \left ({\left (m + 2\right )} \log \left (b\right ) + a\right ) \Gamma \left (m + 3, b x\right ) - \cosh \left ({\left (m + 2\right )} \log \left (-b\right ) - a\right ) \Gamma \left (m + 3, -b x\right ) + \Gamma \left (m + 3, -b x\right ) \sinh \left ({\left (m + 2\right )} \log \left (-b\right ) - a\right ) - \Gamma \left (m + 3, b x\right ) \sinh \left ({\left (m + 2\right )} \log \left (b\right ) + a\right )}{2 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: TypeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int x^{m + 2} \cosh \left (b x + a\right )\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]